package com.skp.shaphan.io;

import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;

public class StringBasedDataWriter extends ExportDataWriter {
	private PrintWriter pw;

	@Override
	protected void createStreams(OutputStream stream) throws IOException {
		pw = new PrintWriter(stream);
	}
	
	protected void println(String line) {
		pw.println(line);
	}
	
	protected void print(String data) {
		pw.print(data);
	}

	@Override
	public void close() throws IOException {
		pw.close();
		super.close();
	}

}
